#include <iostream>

using namespace std;

int main()
{
	int hour, min, sec, riding; // hour - used to store the hours
				    // min - used to store the current minutes
				    // sec - used to store the current seconds
				    // riding - estimated time on road
	cout << "Please enter current time and estimated time on road:" << endl;
	cin >> hour >> min >> sec >> riding;
	sec =  (sec + riding) % 60;
	hour += ((riding / 60) + min + sec) / 60;
	min = ((riding / 60) + min) % 60;

	cout << "You will arrive at: " << hour << ':' << min << ':' << sec << endl;

}
//output
//Please enter current time and estimated time on road: 12 30 00 180
//You will arrive at: 12:33:0
